#include<bits/stdc++.h>
using namespace std;
int cnt[100005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        int a;
        scanf("%d",&a);
        cnt[a]++;
    }
    int summ=0;
    for(int i=1;i<=100000;i++){
        summ=max(0,summ-cnt[i]);
        summ+=cnt[i];
    }
    printf("%d",summ);
    return 0;
}